<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:a="http://richfaces.org/a4j"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:rich="http://richfaces.org/rich">



	<f:subview>
		<h:panelGrid columns="3" width="100%">
			<rich:toggleControl switchToState="#{next==null?'first':next}">
				<h:graphicImage value="/images/arrow.png" />
				<h:outputText value=" #{msg.topic}" />
				<a:support event="onclick"
					action="#{messageIndexAction.readMessage(msg)}" />
			</rich:toggleControl>
			<rich:toggleControl switchToState="third" rendered="#{next==null}">
				<h:graphicImage title="回复该消息" value="/images/message.png" />
			</rich:toggleControl>
			<h:panelGrid columns="2" style="width:200px;float:right;">
				<h:outputText value="#{msg.sender.nickName}" />
				<h:outputText value="#{msg.sendDate}" />
			</h:panelGrid>
		</h:panelGrid>
	</f:subview>


</ui:composition>